<html>
<head>
<meta charset="UTF-8">
<title>审批任务实例修改</title>
<link href="../../static/plugin/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/plugin/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-edit.css" rel="stylesheet" type="text/css"/>
<script src="../../static/plugin/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/plugin/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/plugin/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout" scroll="no">
	<form id="ff" method="post">
		<div class="esaas-info-title">审批任务实例信息</div>
		<table class="esaas-info-edit-table">
			<tr>
				<td width="15%" align="right">审批任务标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="wfiTaskId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">节点实例标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="wfiNodeId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">业务流水号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="wfiSerialNo" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">流程实例ID：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="wfiInstanceId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">审批任务内容：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="wfiTaskContent" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">流程节点标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="bpmNodeId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">流程节点名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="bpmNodeName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">开始时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="startTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">结束时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="endTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">审批时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">审批人标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveUserId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">审批人名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveUserName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">审批机构标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveOrgId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">审批机构名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveOrgName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">审批意见：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveOpinion" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">审批意见说明：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="approveComment" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
		</table>
	</form>
	<div style="text-align: center; padding: 15px">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>		
		$(function() {
			$.restfulGet('../../api/bpw/inst/task/',null,function(data){
					$('#ff').form('load', {
						wfiTaskId : data.rows.wfiTaskId,
						wfiNodeId : data.rows.wfiNodeId,
						wfiSerialNo : data.rows.wfiSerialNo,
						wfiInstanceId : data.rows.wfiInstanceId,
						wfiTaskContent : data.rows.wfiTaskContent,
						bpmNodeId : data.rows.bpmNodeId,
						bpmNodeName : data.rows.bpmNodeName,
						startTime : data.rows.startTime,
						endTime : data.rows.endTime,
						approveTime : data.rows.approveTime,
						approveUserId : data.rows.approveUserId,
						approveUserName : data.rows.approveUserName,
						approveOrgId : data.rows.approveOrgId,
						approveOrgName : data.rows.approveOrgName,
						approveOpinion : data.rows.approveOpinion,
						approveComment : data.rows.approveComment
					});					
			});
		});
	
		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPut('../../api/bpw/inst/task', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
